package com.hyt.it.ogt.ykcj.common.enums;

/**
 * description
 *
 * @author yaojian
 * @createTime 2021/12/03
 */
public enum ExchangeNameEnum {

    /**
     * 发送方发送的字段“姓名”，对应我们存储在EnterpriseExamineeInfo对象的字段为“name”
     */
    NAME("姓名", "name"),
    IDCARD("身份证", "idcard"),
    //INFO 这里的证据类型有：大陆居民身份证，港澳台身份证，护照，我暂时都是放身份证上面
    IDCARD2("证件号码", "idcard"),
    ADMISSIONNO("准考证", "admissionNo"),
    ADMISSIONNO2("准考证号", "admissionNo"),


    MOBILE("电话号码", "mobile"),
    PHONE("电话号", "mobile"),
    TELS("手机号", "mobile"),
    TEL("手机号码", "mobile");

    private String name;
    private String filedName;

    ExchangeNameEnum(String name, String filedName) {
        this.name = name;
        this.filedName = filedName;
    }

    public static String getValue(String key) {
        ExchangeNameEnum[] exchangeNameEnums = values();
        for (ExchangeNameEnum exchangeNameEnum : exchangeNameEnums) {
            if (exchangeNameEnum.getKeyName().equals(key)) {
                return exchangeNameEnum.getValName();
            }
        }
        return null;
    }


    public String getKeyName() {
        return name;
    }

    public void setKeyName(String name) {
        this.name = name;
    }

    public String getValName() {
        return filedName;
    }

    public void setValName(String filedName) {
        this.filedName = filedName;
    }
}
